package com.bwie.controller;
import com.bwie.domain.User;
import com.bwie.service.UserService;
import com.bwie.service.impl.UserServiceImpl;
import com.bwie.utils.R;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* (tb_user)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/discount/tb_user")
public class UserController {
/**
* 服务对象
*/
    @Autowired
    private UserService userService;


    @PostMapping("send")
    public R send(@RequestBody User user){
      return userService.send(user);
    };


    @PostMapping("/login")
    public R login(@RequestBody User user){

        return userService.login(user);
    }
}
